The atan2(y, x) function returns the arc tangent (inverse tangent) of the ratio of its arguments (y/x). atan2() returns its argument in radians. The signs of y and x are used to determine the quadrant.